package com.ls.data.service;

import com.ls.data.mapper.TodayHistoryMapper;
import com.ls.interPojo.TodayHistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 段成
 * @date 2020/1/9 - 20:31
 */
@Service
public class TodayHistoryService {
    @Autowired
    private TodayHistoryMapper todayHistoryMapper;

    public TodayHistory getDataByMonthAndDay(String month, String day) {
        return todayHistoryMapper.getDataByMonthAndDay(month,day);
    }

    public void insertData(TodayHistory insertData) {
        todayHistoryMapper.insertData(insertData);
    }
}
